package com.rew.canteenchefs.models;

/**
 * 结果模板.
 *
 * Created by HuiWen Ren on 2016/12/2.
 * @param <T>
 */

public class Result<T> {

    // 结果代码
    private Integer code;

    // 结果信息
    private String message;

    // Bean
    private T bean;

    // MyBatis要求空构造函数
    public Result(){

        //请保留为空
    }


    /**
     * 以下为 setter & getter .
     *
     */

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getBean() {
        return bean;
    }

    public void setBean(T bean) {
        this.bean = bean;
    }
}
